<div class='fui-page  fui-page-current page-goods-list'>
	<div id="carousel-container" class="carousel slide" data-role="carousel" data-param-auto="true">
		<div class="carousel-inner" role="listbox" style="height:auto">
			<div ng-class="{'item':1,'active':$index==0}" ng-repeat="item in pagedata.setting.hdps">
				<a href="#">
					<img src="{{tomedia(item.picurl) || '../core/resource/images/banner-1.jpg'}}" style="display: block; width: 100%; height: 100%;">
				</a>
			</div>
		</div>
		<style>
            .fui-swipe-page .fui-swipe-bullet {background: {background}; opacity: {opacity};}
            .fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
		</style>
		<div id="carousel-jinyun" class="fui-swipe-page" style="padding: 0 5px; bottom: 10px; ">
				<div class="fui-swipe-bullet" ng-repeat="item in pagedata.setting.hdps" ng-class="{'active':$index==0}" data-target="#carousel-container" data-slide-to="{{$index}}"></div>
		</div>
	</div>
	   <form action="" method="post">
            <div class="fui-searchbar bar">
                <div class="searchbar center">
                    <input type="submit" class="searchbar-cancel searchbtn" value="搜索">
                    <div class="search-input">
                        <i id="searchsub" ng-click="tool.get_list('jy_yousetli/index/getlist/',true)" class="icon jinyunicon icon-search"></i>
                        <input type="search" class="search" name="keywords" placeholder="搜索优惠接力活动...">
                    </div>
                </div>
            </div>
        </form>		

    <div class="fui-content navbar" style="top:0">
	<div class='fui-content-inner'>
	    <div class='content-empty' style='display:none;'>
		<i class='icon icon-searchlist'></i><br/>暂时没有任何活动
	    </div>
	    <div class="fui-goods-group container block" id="goods-list-container">
		<div ng-repeat="g in pagedata.list" class="fui-goods-item">
			<a href="javascript:" ng-click="access_json('jy_yousetli/detail//id='+g.id)">
			  <div class="image" style="background-image: url('{{tomedia(g.image)}}')">
					<div ng-show="g.total<=0" class="salez" style="background-image: url('{{tomedia(pagedata.setting.shop.saleout)}}'); "></div>
			  </div>
			</a>
			<div  class="detail" ng-click="">
				<a  href="javascript:">
					   <div class="name">{{g.title}}</div>
				</a>
				<div class="price">
				</div>
			</div>
			
		</div>
		</div>
	    <div ng-if="pagedata.loading"  id="loading" class='infinite-loading'><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>
	</div>

    </div>

    <div class='fui-mask-m'></div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>

	require(['bootstrap', 'hammer'], function($, Hammer){
		$('#carousel-container').carousel();
		var mc = new Hammer($('#carousel-container').get(0));
		mc.on("panleft", function(ev) {
			$('#carousel-container').carousel('next');
		});
		mc.on("panright", function(ev) {
			$('#carousel-container').carousel('prev');
		});
	});


scope.pagedata.showfilter=function(){
		$('#showfilter').modal();
}
scope.pagedata.params.order='default'
scope.tool.get_list('jy_yousetli/index/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_yousetli/index/getlist/');
}
	</script>